package com.itheima.aduit.controller;

import com.itheima.aduit.mapper1.ActMapper;
import com.itheima.aduit.mapper2.UserMapper;
import com.itheima.common.entity.Result;
import com.itheima.common.entity.ResultCode;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.repository.ProcessDefinition;
import org.activiti.engine.repository.ProcessDefinitionQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author qiankaofei
 * @version 1.0
 * @date 2020/12/17 21:02
 */
@RestController
@RequestMapping("/user")
public class TestController {

    @Autowired
    private ActMapper actMapper;

    @Autowired
    private UserMapper userMapper;

    @RequestMapping("/findDate")
    public Map<String,Object> findDate(){
        Map<String,Object> resultMap=new HashMap<String,Object>(0);
        resultMap.put("act",actMapper.findActMapper());
        resultMap.put("user",userMapper.findAllUsers());
        return resultMap;
    }






}
